//
//  pictureFlowLayout.m
//  Recycling
//
//  Created by jzd on 2018/5/21.
//  Copyright © 2018年 宋佳. All rights reserved.
//

#import "pictureFlowLayout.h"

@implementation pictureFlowLayout

-(void)prepareLayout{
    [super prepareLayout];
    // 1.设置itemSize
//    CGFloat width = (self.collectionView.width -20)/3;
    self.itemSize = CGSizeMake(70, 70);
    self.minimumInteritemSpacing = 0;
    self.minimumLineSpacing = 0;
    self.scrollDirection = UICollectionViewScrollDirectionVertical;
    
    // 2.设置collectionView的属性
    self.collectionView.pagingEnabled = YES;
    self.collectionView.showsHorizontalScrollIndicator = NO;
    self.collectionView.showsVerticalScrollIndicator = NO;
}
@end
